﻿using System;
using BootstrapBlazor.Components;
using Microsoft.AspNetCore.Components;
using System.Diagnostics.CodeAnalysis;
using iTeamyou.LTS.UI.Models;

namespace iTeamyou.LTS.UI.Shared.Components.Mobile
{
    public partial class ManufacturerMobileSearch
    {
        /// <summary>
        /// 
        /// </summary>
        [Parameter]
        [NotNull]
        public ManufacturerSearchModel? Value { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [Parameter]
        public EventCallback<ManufacturerSearchModel> ValueChanged { get; set; }

        public List<SelectedItem> LicenseCountList { get; set; }

        public ManufacturerMobileSearch()
        {
            LicenseCountList = new List<SelectedItem>
            {
                new SelectedItem() { Text = "请选择有无证照", Value = string.Empty },
                new SelectedItem() { Text = "有证照", Value = "1" },
                new SelectedItem() { Text = "无证照", Value = "0" },
                new SelectedItem() { Text = "全部", Value = "9" }
            };
        }
    }
}

